"""
smsapi.py 云通讯短信接口
"""
from ronglian_sms_sdk import SmsSDK

accId = '2c94811c9860a9c40198d56a4cc7135a'
accToken = '8aa6fe0910fd4f09a9b692957869bb57'
appId = '2c94811c9860a9c40198d56a4e4e1361'


def send_message(tid, mobile, datas):
    sdk = SmsSDK(accId, accToken, appId)
    resp = sdk.sendMessage(tid, mobile, datas)
    return resp


if __name__ == '__main__':
    tid = '1'
    mobile = '18892689998'
    datas = ('1016', '5')
    send_message(tid, mobile, datas)
